import Vue from 'vue'
import Vuex from 'vuex'
import user from '@/store/modules/user'
import searchRecord from '@/store/modules/searchRecord'
import addressStore from '@/store/modules/addressStore'
import systemConfig from '@/store/modules/systemConfig'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {},
  getters: {
    token (state) {
      return state.user.userInfo.token
    }
  },
  mutations: {},
  actions: {},
  modules: {
    user, searchRecord, addressStore, systemConfig
  }
})
